﻿param($filename)
Set-Location (Split-Path -parent $MyInvocation.MyCommand.Definition)
$inifile = Get-Content $filename

$arrayList = @()
foreach ($line in $inifile) {
	if ($line -notmatch "^#") {
		$thisarray = @{}
		$data = $line.Split()
		$thisarray.Add("Name",$data[0])
		$thisarray.Add("SPAIP",$data[1])
		$thisarray.Add("SPBIP",$data[2])
		$thisarray.Add("username",$data[3])
		$thisarray.Add("password",$data[4])
		$thisarray.Add("scope",$data[5])
		$arrayList += $thisarray
	}
	
}
$arrayList[0]

